const dbService = require("../service/dbService");

class LabelController {
    async createLabel(ctx) {
        const { name } = ctx.request.body;
        const result = await dbService.insert({ name }, 'label');
        if(result && result.insertId) {
            ctx.makeResp({});
        }
    }
}

module.exports = new LabelController();